home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / misc / gs261src.zip / unixtail.mak < prev    next >
Text File  |  1993-05-29  |  4KB  |  113 lines

  1. #    Copyright (C) 1990, 1992, 1993 Aladdin Enterprises.  All rights reserved.
  2. #
  3. # This file is part of Ghostscript.
  4. #
  5. # Ghostscript is distributed in the hope that it will be useful, but
  6. # WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  7. # to anyone for the consequences of using it or for whether it serves any
  8. # particular purpose or works at all, unless he says so in writing.  Refer
  9. # to the Ghostscript General Public License for full details.
  10. #
  11. # Everyone is granted permission to copy, modify and redistribute
  12. # Ghostscript, but only under the conditions described in the Ghostscript
  13. # General Public License.  A copy of this license is supposed to have been
  14. # given to you along with Ghostscript so you can know your rights and
  15. # responsibilities.  It should be in a file named COPYING.  Among other
  16. # things, the copyright notice and this notice must be preserved on all
  17. # copies.
  18.  
  19. # Partial makefile for Ghostscript, common to all Unix configurations.
  20.  
  21. # This is the last part of the makefile for Unix configurations.
  22. # Since Unix make doesn't have an 'include' facility, we concatenate
  23. # the various parts of the makefile together by brute force (in tar_cat).
  24.  
  25. # The following prevents GNU make from constructing argument lists that
  26. # include all environment variables, which can easily be longer than
  27. # brain-damaged system V allows.
  28.  
  29. .NOEXPORT:
  30.  
  31. # -------------------------------- Library -------------------------------- #
  32.  
  33. ## The Unix platforms
  34.  
  35. # We have to include a test for the existence of sys/time.h,
  36. # because some System V platforms don't have it.
  37.  
  38. # All reasonable Unix platforms.
  39. unix__=gp_nofb.$(OBJ) gp_unix.$(OBJ) gdevpipe.$(OBJ)
  40. unix_.dev: $(unix__)
  41.     $(SHP)gssetmod unix_ $(unix__)
  42.     $(SHP)gsaddmod unix_ -fdev pipe
  43.  
  44. gp_unix.$(OBJ): gp_unix.c $(AK) $(memory__h) $(string__h) $(gx_h) $(gp_h) \
  45.  $(stat__h) $(time__h)
  46.     if ( test -f /usr/include/sys/time.h ) then $(CCC) gp_unix.c;\
  47.     else $(CCC) -DNOSYSTIME gp_unix.c; fi
  48.  
  49. gdevpipe.$(OBJ): gdevpipe.c $(AK) $(stdio__h) $(gstypes_h) \
  50.   $(filedev_h) $(stream_h)
  51.  
  52. # Brain-damaged System V platforms.
  53. sysv__=gp_nofb.$(OBJ) gp_unix.$(OBJ) gp_sysv.$(OBJ)
  54. sysv_.dev: $(sysv__)
  55.     $(SHP)gssetmod sysv_ $(sysv__)
  56.  
  57. gp_sysv.$(OBJ): gp_sysv.c $(time__h) $(AK)
  58.     if ( test -f /usr/include/sys/time.h ) then $(CCC) gp_sysv.c;\
  59.     else $(CCC) -DNOSYSTIME gp_sysv.c; fi
  60.  
  61. # -------------------------- Auxiliary programs --------------------------- #
  62.  
  63. ansi2knr$(XE): ansi2knr.c $(stdio__h) $(string__h) $(malloc__h)
  64.     $(CC) -o ansi2knr$(XE) $(CFLAGS) ansi2knr.c
  65.  
  66. echogs$(XE): echogs.c
  67.     $(CC) -o echogs$(XE) $(CFLAGS) echogs.c
  68.  
  69. # On the RS/6000 (at least), compiling genarch.c with gcc with -O
  70. # produces a buggy executable.
  71. genarch$(XE): genarch.c
  72.     $(CC) -o genarch$(XE) genarch.c
  73.  
  74. genconf$(XE): genconf.c
  75.     $(CC) -o genconf$(XE) genconf.c
  76.  
  77. # ----------------------------- Main program ------------------------------ #
  78.  
  79. BEGINFILES=
  80. CCBEGIN=$(CCC) *.c
  81.  
  82. # Interpreter main program
  83.  
  84. GSUNIX=gs.$(OBJ) gsmain.$(OBJ) $(INT) $(LIBGS)
  85.  
  86. # The second call on echogs writes a \.  This is the only
  87. # way to do it that works with all flavors of shell!
  88. $(GS)$(XE): $(GSUNIX) ld.tr echogs $(ALL_DEVS)
  89.     ./echogs -n - $(CC) $(LDFLAGS) $(XLIBDIRS) -o gs $(GSUNIX) >_temp_
  90.     ./echogs -x 205c >>_temp_
  91.     cat ld.tr >>_temp_
  92.     ./echogs - $(EXTRALIBS) -lm >>_temp_
  93.     $(SH) <_temp_
  94.  
  95. # Installation
  96.  
  97. TAGS:
  98.     etags -t *.c *.h
  99.  
  100. docdir=$(gsdatadir)/doc
  101. exdir=$(gsdatadir)/examples
  102.  
  103. install: gs
  104.     -mkdir $(bindir)
  105.     for f in gs gsbj gsdj gslj gslp gsnd bdftops font2c ps2ascii ps2epsi ; do $(INSTALL_PROGRAM) $$f $(bindir)/$$f ; done
  106.     -mkdir $(datadir)
  107.     -mkdir $(gsdatadir)
  108.     for f in README gslp.ps gs_init.ps gs_dps1.ps gs_fonts.ps gs_lev2.ps gs_statd.ps gs_type0.ps gs_sym_e.ps quit.ps Fontmap uglyr.gsf bdftops.ps decrypt.ps font2c.ps impath.ps landscap.ps level1.ps prfont.ps ps2ascii.ps ps2epsi.ps ps2image.ps pstoppm.ps showpage.ps type1ops.ps wrfont.ps ; do $(INSTALL_DATA) $$f $(gsdatadir)/$$f ; done
  109.     -mkdir $(docdir)
  110.     for f in NEWS ansi2knr.1 devices.doc drivers.doc fonts.doc gs.1 hershey.doc history.doc humor.doc language.doc lib.doc make.doc ps2epsi.doc psfiles.doc readme.doc use.doc xfonts.doc ; do $(INSTALL_DATA) $$f $(docdir)/$$f ; done
  111.     -mkdir $(exdir)
  112.     for f in chess.ps cheq.ps colorcir.ps golfer.ps escher.ps snowflak.ps tiger.ps ; do $(INSTALL_DATA) $$f $(exdir)/$$f ; done
  113.